package org.jeecg.modules.door.entity;

import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecg.common.aspect.annotation.Dict;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Description: ic卡设置
 * @Author: jeecg-boot
 * @Date:   2023-08-08
 * @Version: V1.0
 */
@ApiModel(value="lwgy_door_card对象", description="门锁管理")
@Data
@TableName("lwgy_door_card")
public class LwgyDoorCard implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
	@ApiModelProperty(value = "主键")
	private String id;
	/**创建人*/
	@ApiModelProperty(value = "创建人")
	private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建日期")
	private Date createTime;
	/**更新人*/
	@ApiModelProperty(value = "更新人")
	private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "更新日期")
	private Date updateTime;
	/**所属部门*/
	@ApiModelProperty(value = "所属部门")
	private String sysOrgCode;
	/**校区*/
	@Excel(name = "校区", width = 15,dictTable = "lwgy_base_apartment", dicText = "name", dicCode = "id")
	@Dict(dicCode = "id",dicText = "name",dictTable = "lwgy_base_apartment")
	@ApiModelProperty(value = "校区")
	private String campusId;
	/**楼宇*/
	@Excel(name = "楼宇", width = 15,dictTable = "lwgy_base_apartment", dicText = "name", dicCode = "id")
	@Dict(dicCode = "id",dicText = "name",dictTable = "lwgy_base_apartment")
	@ApiModelProperty(value = "楼宇")
	private String buildingId;
	/**单元*/
	@Excel(name = "单元", width = 15,dictTable = "lwgy_base_apartment", dicText = "name", dicCode = "id")
	@Dict(dicCode = "id",dicText = "name",dictTable = "lwgy_base_apartment")
	@ApiModelProperty(value = "单元")
	private String unitId;
	/**楼层*/
	@Excel(name = "楼层", width = 15,dictTable = "lwgy_base_apartment", dicText = "name", dicCode = "id")
	@Dict(dicCode = "id",dicText = "name",dictTable = "lwgy_base_apartment")
	@ApiModelProperty(value = "楼层")
	private String layerId;
	/**房间*/
	@Excel(name = "房间", width = 15,dictTable = "lwgy_base_apartment", dicText = "name", dicCode = "id")
	@Dict(dicCode = "id",dicText = "name",dictTable = "lwgy_base_apartment")
	@ApiModelProperty(value = "房间")
	private String roomId;

	/**门锁id*/
	@ApiModelProperty(value = "门锁id")
	private String doorId;
	/**卡类型*/
	@Excel(name = "卡类型", width = 15, dicCode = "doorcartype")
	@Dict(dicCode = "doorcartype")
	@ApiModelProperty(value = "卡类型")
	private String cardType;
	/**卡号*/
	@Excel(name = "卡号", width = 15)
	@ApiModelProperty(value = "卡号")
	private String cardNo;
	/**所属人*/
	@Excel(name = "所属人", width = 15)
	@ApiModelProperty(value = "所属人")
	private String user;
	/**卡所属类型*/
	@Excel(name = "卡所属类型", width = 15, dicCode = "usecar")
	@Dict(dicCode = "usecar")
	@ApiModelProperty(value = "卡所属类型")
	private String cardUserType;
	/**学号/工号*/
	@Excel(name = "学号/工号", width = 15)
	@ApiModelProperty(value = "学号/工号")
	private String cardUserNum;
	/**有效期*/
	@Excel(name = "下发状态", width = 15, dicCode = "status")
	@ApiModelProperty(value = "下发状态")
	@Dict(dicCode = "status")
	private String status;
/*	*//**是否同步*//*
	@ApiModelProperty(value = "是否同步")
	@Dict(dicCode = "activiti_sync")
	private String sysn;*/
	/**状态*/
	@Excel(name = "卡状态", width = 15, dicCode = "cardstatus")
	@ApiModelProperty(value = "卡状态")
	@Dict(dicCode = "cardstatus")
	private String cardStatus;

	@TableField(exist = false)
	private String studentNumber;
	@TableField(exist = false)
	private String StudentName;

}
